#include "%(ClassLower)s.h"


%(Classname)s::%(Classname)s()
{
    use_bitmask = false;
    image = NULL;
    frame_n = 0;
}


%(Classname)s:: %(Classname)s(Image *img,
               unsigned int w,
               unsigned int h)
{
    /* Un poco de inicializacion ... */
    frame_rect.w = w;
    frame_rect.h = h;
    use_bitmask = false;
    image = img;
    frame_n = 0;
}

%(Classname)s::~%(Classname)s()
{
}

void %(Classname)s::draw(SDL_Surface *surf)
{
    SDL_Rect dest;

    dest.w = frame_rect.w;
    dest.h = frame_rect.h;

    dest.x = x;
    dest.y = y;

    frame_rect.x = 0;
    frame_rect.y = frame_n*(frame_rect.h);

    image->draw(&frame_rect,surf,&dest);
}

void %(Classname)s::update(unsigned int time_delta)
{
    /*TODO: Implementar esta funcion para el sprite %(Classname)s */
}
/* ex: set cindent expandtab softtabstop=4 shiftwidth=4 tabstop=4: */
